//
//  DECXManager.h
//  DECXInStore
//
//  Created by 程强 on 15/12/14.
//  Copyright © 2015年 程强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DSASubject.h"
#import "DECXStoreOrderCommitModel.h"

@interface DECXManager : NSObject
/**
 *  仓管登录
 *
 *  @param account 账号
 *  @param pwd     密码
 *
 *  @return subject
 */
- (DSASubject *)login:(NSString *)account pwd:(NSString *)pwd;

/**
 席位号登录

 @param seat 席位号
 @param pwd 密码
 @return subject
 */
- (DSASubject *)seatNoLogin:(NSString *)seat pwd:(NSString *)pwd;
/**
 *  货权人信息获取
 *
 *  @param seatNo 席位号
 *
 *  @return subject
 */
- (DSASubject *)productOwner:(NSString *)seatNo;
/**
 *  仓单列表
 *
 *  @param userid userid
 *  @param type 1:仓管登录 2:席位号登录
 *
 *  @return subject
 */
- (DSASubject *)storeOrderList:(NSString *)userid type:(NSString *)type;
/**
 *  种类
 *
 *  @return subject
 */
- (DSASubject *)category;
/**
 *  上传图片
 *
 *  @param origialImage 原始图片
 *  @param image        缩略图
 *  @param prove        图片标记
 *
 *  @return subject
 */
- (DSASubject *)uploadFile:(UIImage *)origialImage thumbnail:(UIImage *)image prove:(BOOL)prove;
- (DSASubject *)commitStore:(NSString *)userid storeOrder:(DECXStoreOrderCommitModel *)model;
/**
 *  检查更新
 *
 *  @return subject
 */
- (DSASubject *)checkVersionUpdate;
/**
 *  修改密码
 *
 *  @param userid      用户id
 *  @param password    旧密码
 *  @param newpassword 新密码
 *
 *  @return subject
 */
- (DSASubject *)changePwd:(NSString *)userid password:(NSString *)password newpassword:(NSString *)newpassword;

/**
 获取合约的信息

 @param orderId 合约号
 @return subject
 */
- (DSASubject *)getContractInfo:(NSString *)orderId;

/**
 获取仓库信息

 @param depotId 仓库id
 @return subject
 */
- (DSASubject *)getStoreInfo:(NSString *)depotId;

/**
 获取仓库列表

 @return subject
 */
- (DSASubject *)getStoreList;
- (DSASubject *)commitContractStore:(NSString *)userid contractOrder:(DECXContractOrderCommitModel *)model;

/**
 获取船运公司列表
 */
- (DSASubject *)getShipCompanyList;

/**
 仓单列表详情
 */
- (DSASubject *)getOrderDetails:(NSString *)list_id;

/**
 审核
 */
- (DSASubject *)verifyOrder:(NSString *)list_id state:(NSString *)state;

/**
 一键注册席位号

 @param name 姓名
 @param phone 电话
 @param type 类型  1：公司 2：个人
 */
- (DSASubject *)oneKeyRegisterSeatWithName:(NSString *)name phone:(NSString *)phone type:(NSString *)type;

/**
 添加司机

 @param name 姓名
 @param phone 电话
 @param carNo 车牌号
 @param depot_id 仓库id
 @param idCard 身份证（选填）
 */
- (DSASubject *)addDriver:(NSString *)name phone:(NSString *)phone carNo:(NSString *)carNo warehouse:(NSString *)depot_id idCard:(NSString *)idCard;

/**
 司机列表

 @param depot_id 仓库id
 */
- (DSASubject *)driverList:(NSString *)depot_id;

/**
 删除司机

 @param driver_id 司机id
 */
- (DSASubject *)driverDelete:(NSString *)driver_id;

/**
 提货

 @param origin_listid 仓单号
 @param get_weight 提货数量
 @param user_id 仓管id
 @param depot_id 仓库id
 @param driver 司机，逗号连接
 */
- (DSASubject *)deliveryProduct:(NSString *)origin_listid weight:(NSString *)get_weight user_id:(NSString *)user_id depot_id:(NSString *)depot_id driver:(NSString *)driver type:(NSString *)type;

/**
 提货单列表

 @param user_id 仓管id
 */
- (DSASubject *)deliveryList:(NSString *)user_id type:(NSString *)type;

/**
 搜索仓单

 @param getlist_id 提单号
 @param depot_id 仓库id
 */
- (DSASubject *)searchOrderByGetListID:(NSString *)getlist_id depot:(NSString *)depot_id type:(NSInteger)type;
/**
 扫码获取提单
 
 @param getlist_id 提单号
 @param depot_id 仓库id
 */
- (DSASubject *)scanGetDeliveryOrderByGetListID:(NSString *)getListId uid:(NSString *)uid depotID:(NSString *)did;
/**
 确认出库
 
 @param getlist_id 提单号
 */
- (DSASubject *)confirmOutOfStock:(NSString *)getListId;
@end
